"Tom Melly" <tom### [at] tomandlu co uk> wrote in message
news:3bfe2478@news.povray.org...
> The docs refer to mod(A, B) as:
> Formula is mod=((A/B)-int(A/B))*B
>
> Shouldn't that be:
> Formula is mod=A-(int(A/B)*B)
Not that I'd know or anything but I thought: mod=A/B-int(A/B)
For instance, if A=3 and B=2 that would get you the modulus 0.5; so long as
int() rounds down anyway.
Bob H.
Post a reply to this message
|